<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div id="console"></div>

<script>
    shouldThrow("document.evaluate('/body', document, 5, 0, null)");
    shouldThrow("document.evaluate('/body', document, 'a resolver', 0, null)");
    shouldBe("document.evaluate('/body', document, Date, 0, null).toString()", '"[object XPathResult]"');
</script>
</body>
</html>
